﻿ver = $host | select version
if ($ver.Version.Major -gt 1) {$host.Runspace.ThreadOptions = "ReuseThread"} 
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}

$email = "my_mail@company.com"
$subject = "my_subject"
$body = "my_body"
 
$site = New-Object Microsoft.SharePoint.SPSite "http://Server/sites/nameSite/"
$web = $site.OpenWeb()

#######################################
# Send E-mail From SharePoint Utility #
#######################################
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,0,0,$email,$subject,$body)

Remove-PsSnapin Microsoft.SharePoint.PowerShell